import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.ArrayList;

public class Test {

  public static void main(String[] args) throws IOException {
// 测试排序
//    ArrayList<Student> students = new ArrayList<>();
//    students.add(new Student("wyh", 5.0, 34.0, 6.0));
//    students.add(new Student("whh", 100.0, 33.0, 96.0));
//    students.add(new Student("we", 67.0, 34.0, 6.0));
//    students.add(new Student("wye", 34.0, 24.0, 6.0));
//    System.out.println(students);
//    List<Student> students1 = Student.sortBySum(students);
//    System.out.println(students1);
//    System.out.println(students);
//序列化用于存储
//    ArrayList<Student> students = new ArrayList<>();
//    students.add(new Student("庄周", 100.0, 100.0, 100.0));
//    ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream("src//student.data"));
//    objectOutputStream.writeObject(students);
//    students.clone();
  }

}
